﻿Imports DAO
Imports DTO

Public Class ChiTietSachBUS

    Public Sub DeleteSach_Loai(ByVal idSach_Loai As TheLoaiDTO)
        Dim chitiet As New ChiTietSachDAO
        chitiet.DeleteBook(idSach_Loai)
    End Sub

    Public Function LayTonCuoi(ByVal ct As ChiTietSachDTO) As DataTable
        Dim dt As New DataTable
        Dim chi As New ChiTietSachDAO
        dt = chi.LayTonCuoi(ct)
        Return dt
    End Function

    Public Sub CapNhatChiTietSach(ByVal book As ChiTietSachDTO, ByVal sl As Integer)
        Dim chi As New ChiTietSachDAO
        chi.CapNhatChiTietSach(book, sl)
    End Sub
End Class
